gpg: New import and keyserver option "self-sigs-only"
authorWerner Koch <wk@gnupg.org>
Mon, 1 Jul 2019 13:14:59 +0000 (15:14 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 22 Aug 2019 19:11:59 +0000 (20:11 +0100)
commit3dba2e0b399b924e0ea91e00f79461cc73f202f9
tree5225a2a308da0616f57c098969224fa5f96997b0
parent18a10aa92be7002deb429792e86aa7c1a09ee52a
gpg: New import and keyserver option "self-sigs-only"

* g10/options.h (IMPORT_SELF_SIGS_ONLY): New.
* g10/import.c (parse_import_options): Add option "self-sigs-only".
(read_block): Handle that option.
--

This option is intended to help against importing keys with many bogus
key-signatures.  It has obvious drawbacks and is not a bullet-proof
solution because a self-signature can also be faked and would be
detected only later.

GnuPG-bug-id: 4591
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 15a425a1dfe60bd976b17671aa8e3d9aed12e1c0)
(cherry picked from commit adb120e663fc5e78f714976c6e42ae233c1990b0)

Gbp-Pq: Topic from-2.2.17
Gbp-Pq: Name gpg-New-import-and-keyserver-option-self-sigs-only.patch
doc/gpg.texi
g10/import.c
g10/options.h